import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { SecurityMenuComponent } from './menu/menu.component';
import { PasswordComponent } from './password/password.component';
import { SecurityRoleEditComponent } from './role/edit/edit.component';
import { SecurityRoleComponent } from './role/role.component';
import { SecurityUserEditComponent } from './user/edit/edit.component';
import { SecurityUserComponent } from './user/user.component';

const routes: Routes = [
  { path: 'user/list', component: SecurityUserComponent },
  { path: 'user/edit', component: SecurityUserEditComponent },
  { path: 'user/password', component: PasswordComponent },
  { path: 'role/list', component: SecurityRoleComponent },
  { path: 'role/edit', component: SecurityRoleEditComponent },
  { path: 'menu/list', component: SecurityMenuComponent }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class SecurityRoutingModule {}
